﻿//----------------------------------------------------------------
// Copyright (c) 2011-2013 
// All rights reserved.
// Author: Ben DaoWei 
// Contact: bendaowei@gmail.com
// Web Link: http://xnaeditor.codeplex.com
// ----------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine.Core;

namespace UnityEngine.Terrain
{
    public class LandscapeConfig : UnityEngine.Core.Component
    {
        public LandscapeConfig()
            : this(null)
        {
        }

        public LandscapeConfig(GameObject gameObject)
            : base(gameObject)
        {
        }

        #region WarCraftEnvironmentFileName
        private string warCraftEnvironmentFileName = "Landscape\\war3map.w3e";
        [Editable]
        public string WarCraftEnvironmentFileName
        {
            get
            {
                return warCraftEnvironmentFileName;
            }
            set
            {
                warCraftEnvironmentFileName = value;
            }
        }
        #endregion

        #region WarCraftMapDooFileName
        private string warCraftMapDooFileName = "Landscape\\war3map.doo";
        [Editable]
        public string WarCraftMapDooFileName
        {
            get
            {
                return warCraftMapDooFileName;
            }
            set
            {
                warCraftMapDooFileName = value;
            }
        }
        #endregion

        #region WarCraftPathFileName
        private string warCraftPathFileName = "Landscape\\war3map.wpm";
        [Editable]
        public string WarCraftPathFileName
        {
            get
            {
                return warCraftPathFileName;
            }
            set
            {
                warCraftPathFileName = value;
            }
        }
        #endregion

        #region environment textuers
        private string[] _TexturePaletteFileNames = new string[]
        {
            "Landscape\\Felwood_Dirt.blp",
            "Landscape\\Felwood_DirtRough.blp", 
            "Landscape\\Felwood_Vines.blp" ,
            "Landscape\\Felwood_Grass.blp" ,
            "Landscape\\Felwood_Leaves.blp" ,
            "Landscape\\Lords_GrassDark.blp" ,
            "Landscape\\Ruins_SmallBricks.blp" ,
            "Landscape\\North_dirtdark.blp" ,
        };

        public string[] TexturePaletteFileNames
        {
            set { _TexturePaletteFileNames = value; }
            get { return _TexturePaletteFileNames; }
        }
        #endregion
    }
}
